﻿@model Dexter.DataTransferObject.PostDto

@{
	var postUrl=U.Post.Detail(Model);
	var postPrintUrl = U.Post.Print(Model);
	var postFeedbackUrl = U.Post.FeedBack(Model);
}


<div class="post">
	<h2>
		<a href="@Html.Raw(postUrl)" rel="bookmark">
			@Model.Title
		</a>
	</h2>
	<div class="postheader">
		<div class="postinfo">
			<p>
				Posted
				Model.PublishDate.ToString("dddd MMMM yyyy alle hh:mm")
			</p>
		</div>
	</div>
	<div class="postbody entry clearfix">
		@Model.Abstract
		<p class="postmetadata alt">
			<small>This entry was posted on
				@Model.PublishDate.ToString("dddd, dd MMMM, yyyy")
				and is filed under 
				@foreach (var category in Model.Categories)
				{
					<a rel="category " title="View all posts in @category.Name" href="@Html.Raw(U.Category.Detail(category))">
						@category.Name
					</a>
				}
					
				 . You can follow any responses to this entry through <a title="Comments link" href="@postUrl#comment">here</a> . You can <a href="@postUrl#comment">leave a response</a>. </small>
		</p>
		<br />
	</div>
	<p class="postmetadata">
		Posted in <a href="@U.Category.Detail(Model.Categories.First())" title="View all posts in @Model.Categories.First().Name}" rel="category tag">
			@Model.Categories.First().Name</a> | <a href="@postUrl#comment" title="Comment on @Model.Title">
				@Model.TotalComments
				Comments</a>
	</p>
</div>
